package Factory;

public class PanelLargestSamsung implements PanelBehavior, ControllerBehavior {
    private String name = "PanelLargestSamsung";
    private String info;
    
    @Override
    public void getPanelName() {
        System.out.println(name);
        
    }
    @Override
    public String getInfo() {
        return info;
    }
    @Override
    public void on() {
        info = "ON";
        
    }
    @Override
    public void off() {
        info = "OFF";
        
    }

    @Override
    public void checkInfo(String info) {
        if (info == "OK") {
            System.out.println("OK");
        } else {
            System.out.println("ERROR");
        }
    }

}
